//
//  IMessageContentNode.m
//  imessagesender
//
//  Created by Pang lei on 13-7-25.
//  Copyright (c) 2013年 Pang lei. All rights reserved.
//

#import "IMessageContentNode.h"

@implementation IMessageContentNode

@synthesize content=_content;

- (id) initWithContent:(NSString *)content
{
    if(self = [super init]) {
        self.content = content;
    }
    return self;
}

- (NSString *)toScript
{
    IMessageTaskContext *context = [IMessageTaskContext shareIMessageTaskContext];    
    return [NSString stringWithFormat:@"send \"%@\" to buddy \"%@\" of service \"E:%@\"\n\n", self.content, context.recipient, context.sender];
}

@end
